
public class Beers extends Product{
	private static String type = "Beer";
	private String beer_style;
	private String id;
	private String name;
	private double unit_price;
	private double case_price;
	private double abv;
	private int quantity;
	private String country_origin;

	/**
	 * Creates Beers object
	 * @param case_size integer of the number of units per case
	 * @param id String of the product's unique code
	 * @param name String of the name of the product
	 * @param unit_price double of the cost per unit of the product
	 * @param case_price double of the cost per case of the product
	 * @param type String of the type of drink this product is
	 * @param abv double of the alcoholic percentage of the product
	 * @param beer_style the type of beer that it is
	 * @param country_origin the country the product is from 
	 */
	public Beers(String id, String name, double unit_price,
			double case_price, double abv, String country_origin, String beer_style, int quantity) {
		super(id, name, unit_price, case_price, type, abv, country_origin, 24, quantity);
		this.beer_style = beer_style;
		this.id = id;
		this.name = name;
		this.unit_price = unit_price;
		this.case_price = case_price;
		this.abv = abv;
		this.quantity = quantity;
		this.country_origin = country_origin;
	}
	
	/**
	 * change the style of the beer
	 * @param beer_style String of beer style
	 */
	public void setBeerStyle(String beer_style){
		this.beer_style = beer_style;
	}
	
	/**
	 * return the style of the beer
	 * @return String beer_style
	 */
	public String getBeerStyle(){
		return beer_style;
	}
	
	public String printDetails(){
		String details = String.format("%-6s", id);
		details += String.format("%-10s", type);
		details += String.format("%-20s", name);
		details += String.format("%-5s", abv);
		details += String.format("%-14s", country_origin);
		
		details += String.format("%-36s", beer_style);

		details += String.format("%-7s", unit_price);
		details += String.format("%-7s", case_price);
		details += String.format("%-17s",quantity);
		return details;
	}
}
